package com.library.admin.modules.menu.struct;

import org.mapstruct.*;
import com.library.admin.modules.menu.entity.Menu;
import com.library.admin.modules.menu.vo.MenuVO;
import com.library.admin.modules.menu.bo.MenuInsert;
import com.library.admin.modules.menu.bo.MenuUpdate;

/**
 * 后台管理菜单表(Menu)对象映射转换
 *
 * @author xyh
 * @since 2023-10-02
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface MenuStructMapper {

    Menu updateToMenu(MenuUpdate update);

    Menu insertToMenu(MenuInsert insert);

    MenuVO menuToMenuVO(Menu menu);

}

